﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Tools.Dialog
{
    public partial class FormShowMessage : Form
    {
        public FormShowMessage(Point point)
        {
            InitializeComponent();
            this.Location = point;
        }

        public void SetTextBox(string text)
        {
            if (this.InvokeRequired)
            {
                Action<string> d = new Action<string>(SetTextBox);
                Invoke(d, text);
            }
            else
            {
                this.richTextBoxMessage.Text = text;
            }
        }
    }
}
